package com.wyp.design.pattern.structural.bridge;

/**
 * @author: Oliver
 * @time: 2020/5/17/11:22
 */
public class IBCBank extends Bank {
    public IBCBank(Account account) {
        super(account);
    }

    @Override
    Account openAccount() {
        System.out.println("中国农业银行");
        //调用Account的openAccount方法
        account.openAccount();

        return account;
    }
}
